package com.jianfeiliao.portfolio;

import com.jianfeiliao.portfolio.page.BasePage;
import com.jianfeiliao.portfolio.page.aboutpage.AboutPage;
import com.jianfeiliao.portfolio.page.contactpage.ContactPage;
import com.jianfeiliao.portfolio.page.homepage.HomePage;
import com.jianfeiliao.portfolio.page.projectspage.ProjectsPage;
import com.jianfeiliao.portfolio.page.resumepage.ResumePage;
import com.jianfeiliao.portfolio.panel.header.NavigationItem;
import java.util.ArrayList;
import java.util.List;

public class ContentManager {
    
    public static List<NavigationItem> getNavigationItems() {
        List<NavigationItem> list = new ArrayList<NavigationItem>();
        
        list.add(new NavigationItem(HomePage.class, "Home"));
        list.add(new NavigationItem(ProjectsPage.class, "Projects"));
        list.add(new NavigationItem(ResumePage.class, "Resume"));
        list.add(new NavigationItem(AboutPage.class, "About"));
        list.add(new NavigationItem(ContactPage.class, "Contact"));
        
        return list;
    }

    public static String getSplashQuestion(BasePage page) {
        if (page instanceof HomePage) {
            return "What is jianfeiliao.com?";
        }
        else if (page instanceof ProjectsPage) {
            return "So you want to see some cool stuff?";
        }
        else if (page instanceof ResumePage) {
            return "Just in case you might be a potential employer...";
        }
        else if (page instanceof AboutPage) {
            return "I suppose you want to know more about...";
        }
        else if (page instanceof ContactPage) {
            return "Do you want to get in touch with me?";
        }
        else {
            return "";
        }
    }

    public static String getSplashAnswer(BasePage page) {
        if (page instanceof HomePage) {
            return "It's the online portfolio for Jianfei Liao, aka, me. Duh.";
        }
        else if (page instanceof ProjectsPage) {
            return "No problem! Here, check out some of the projects I did.";
        }
        else if (page instanceof ResumePage) {
            return "I have my resume right here for you.";
        }
        else if (page instanceof AboutPage) {
            return "Well, whatever it is, hopefully you can find it here.";
        }
        else if (page instanceof ContactPage) {
            return "You can reach me by using the form below.";
        }
        else {
            return "";
        }
    }
}
